import request from '@/utils/request'

// 后台查询符合条件的活动List
export function listActivities (query) {
  return request({
    url: '/heart/list',
    method: 'get',
    params: query
  })
}
export function getActivity (activityid) {
  return request({
    url: '/heart/activity/' + activityid,
    method: 'get',
    params: activityid
  })
}
export function getAllPart (activityid) {
  return request({
    url: '/heart/myAllPart/' + activityid,
    method: 'get',
    params: activityid
  })
}
export function updateActivity (HeartActivityDetail) {
  return request({
    url: '/heart/activity/update',
    method: 'put',
    data: HeartActivityDetail
  })
}
export function updateActivityUltra (HeartActivityDetail) {
  return request({
    url: '/heart/activity/finish',
    method: 'post',
    params: HeartActivityDetail
  })
}
